package com.stone.crm.domain;

import java.math.BigDecimal;
import com.stone.common.annotation.Excel;
import com.stone.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
 * 商机产品关系对象 st01_crm_business_product
 * 
 * @author stone
 * @date 2024-04-25
 */
public class St01_crm_business_product extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String rId;

    /** 商机ID */
    @Excel(name = "商机ID")
    private String businessId;

    /** 产品ID */
    @Excel(name = "产品ID")
    private String productId;

    /** 产品单价 */
    @Excel(name = "产品单价")
    private BigDecimal price;

    /** 销售价格 */
    @Excel(name = "销售价格")
    private BigDecimal salesPrice;

    /** 数量 */
    @Excel(name = "数量")
    private String num;

    /** 折扣 */
    @Excel(name = "折扣")
    private BigDecimal discount;

    /** 小计（折扣后价格） */
    @Excel(name = "小计", readConverterExp = "折=扣后价格")
    private BigDecimal subtotal;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    public void setrId(String rId) 
    {
        this.rId = rId;
    }

    public String getrId() 
    {
        return rId;
    }
    public void setBusinessId(String businessId) 
    {
        this.businessId = businessId;
    }

    public String getBusinessId() 
    {
        return businessId;
    }
    public void setProductId(String productId) 
    {
        this.productId = productId;
    }

    public String getProductId() 
    {
        return productId;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setSalesPrice(BigDecimal salesPrice) 
    {
        this.salesPrice = salesPrice;
    }

    public BigDecimal getSalesPrice() 
    {
        return salesPrice;
    }
    public void setNum(String num) 
    {
        this.num = num;
    }

    public String getNum() 
    {
        return num;
    }
    public void setDiscount(BigDecimal discount) 
    {
        this.discount = discount;
    }

    public BigDecimal getDiscount() 
    {
        return discount;
    }
    public void setSubtotal(BigDecimal subtotal) 
    {
        this.subtotal = subtotal;
    }

    public BigDecimal getSubtotal() 
    {
        return subtotal;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("rId", getrId())
            .append("businessId", getBusinessId())
            .append("productId", getProductId())
            .append("price", getPrice())
            .append("salesPrice", getSalesPrice())
            .append("num", getNum())
            .append("discount", getDiscount())
            .append("subtotal", getSubtotal())
            .append("unit", getUnit())
            .toString();
    }
}
